package com.qkm.xinguan.domain.infrastructure.mapper;

import com.qkm.xinguan.domain.entity.Tourist;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qkm.xinguan.vo.TouristVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 游客表
 *
 * @author zhangfujing
 * @email 17395183041@163.com
 * @date 2021-12-19 20:16:59
 */
@Mapper
public interface TouristMapper extends BaseMapper<Tourist> {

	/**
	 * 通过用户名获取用户信息
	 *
	 * @param username 用户名
	 * @return Tourist
	 */
	Tourist geByName(String username);

	List<String> getTouristNamesByIds(List<Long> ids);

	List<String> getTouristPhonesByIds(List<Long> ids);

	int updateTouristStatusById(Long id, Integer status);
}
